﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200087B RID: 2171
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetVideoVersionKeyScRsp : IMessage<GetVideoVersionKeyScRsp>, IMessage, IEquatable<GetVideoVersionKeyScRsp>, IDeepCloneable<GetVideoVersionKeyScRsp>, IBufferMessage
	{
		// Token: 0x17001B58 RID: 7000
		// (get) Token: 0x06006104 RID: 24836 RVA: 0x00102013 File Offset: 0x00100213
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetVideoVersionKeyScRsp> Parser
		{
			get
			{
				return GetVideoVersionKeyScRsp._parser;
			}
		}

		// Token: 0x17001B59 RID: 7001
		// (get) Token: 0x06006105 RID: 24837 RVA: 0x0010201A File Offset: 0x0010021A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetVideoVersionKeyScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001B5A RID: 7002
		// (get) Token: 0x06006106 RID: 24838 RVA: 0x0010202C File Offset: 0x0010022C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetVideoVersionKeyScRsp.Descriptor;
			}
		}

		// Token: 0x06006107 RID: 24839 RVA: 0x00102033 File Offset: 0x00100233
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetVideoVersionKeyScRsp()
		{
		}

		// Token: 0x06006108 RID: 24840 RVA: 0x00102054 File Offset: 0x00100254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetVideoVersionKeyScRsp(GetVideoVersionKeyScRsp other) : this()
		{
			this.activityVideoKeyInfoList_ = other.activityVideoKeyInfoList_.Clone();
			this.retcode_ = other.retcode_;
			this.videoKeyInfoList_ = other.videoKeyInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006109 RID: 24841 RVA: 0x001020A6 File Offset: 0x001002A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetVideoVersionKeyScRsp Clone()
		{
			return new GetVideoVersionKeyScRsp(this);
		}

		// Token: 0x17001B5B RID: 7003
		// (get) Token: 0x0600610A RID: 24842 RVA: 0x001020AE File Offset: 0x001002AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<VideoKeyInfo> ActivityVideoKeyInfoList
		{
			get
			{
				return this.activityVideoKeyInfoList_;
			}
		}

		// Token: 0x17001B5C RID: 7004
		// (get) Token: 0x0600610B RID: 24843 RVA: 0x001020B6 File Offset: 0x001002B6
		// (set) Token: 0x0600610C RID: 24844 RVA: 0x001020BE File Offset: 0x001002BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001B5D RID: 7005
		// (get) Token: 0x0600610D RID: 24845 RVA: 0x001020C7 File Offset: 0x001002C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<VideoKeyInfo> VideoKeyInfoList
		{
			get
			{
				return this.videoKeyInfoList_;
			}
		}

		// Token: 0x0600610E RID: 24846 RVA: 0x001020CF File Offset: 0x001002CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetVideoVersionKeyScRsp);
		}

		// Token: 0x0600610F RID: 24847 RVA: 0x001020E0 File Offset: 0x001002E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetVideoVersionKeyScRsp other)
		{
			return other != null && (other == this || (this.activityVideoKeyInfoList_.Equals(other.activityVideoKeyInfoList_) && this.Retcode == other.Retcode && this.videoKeyInfoList_.Equals(other.videoKeyInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006110 RID: 24848 RVA: 0x00102144 File Offset: 0x00100344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.activityVideoKeyInfoList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.videoKeyInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006111 RID: 24849 RVA: 0x0010219F File Offset: 0x0010039F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006112 RID: 24850 RVA: 0x001021A7 File Offset: 0x001003A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006113 RID: 24851 RVA: 0x001021B0 File Offset: 0x001003B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			this.activityVideoKeyInfoList_.WriteTo(ref output, GetVideoVersionKeyScRsp._repeated_activityVideoKeyInfoList_codec);
			this.videoKeyInfoList_.WriteTo(ref output, GetVideoVersionKeyScRsp._repeated_videoKeyInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006114 RID: 24852 RVA: 0x00102210 File Offset: 0x00100410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.activityVideoKeyInfoList_.CalculateSize(GetVideoVersionKeyScRsp._repeated_activityVideoKeyInfoList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.videoKeyInfoList_.CalculateSize(GetVideoVersionKeyScRsp._repeated_videoKeyInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006115 RID: 24853 RVA: 0x00102274 File Offset: 0x00100474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetVideoVersionKeyScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.activityVideoKeyInfoList_.Add(other.activityVideoKeyInfoList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.videoKeyInfoList_.Add(other.videoKeyInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006116 RID: 24854 RVA: 0x001022D2 File Offset: 0x001004D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006117 RID: 24855 RVA: 0x001022DC File Offset: 0x001004DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 90U)
					{
						if (num != 98U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.videoKeyInfoList_.AddEntriesFrom(ref input, GetVideoVersionKeyScRsp._repeated_videoKeyInfoList_codec);
						}
					}
					else
					{
						this.activityVideoKeyInfoList_.AddEntriesFrom(ref input, GetVideoVersionKeyScRsp._repeated_activityVideoKeyInfoList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002533 RID: 9523
		private static readonly MessageParser<GetVideoVersionKeyScRsp> _parser = new MessageParser<GetVideoVersionKeyScRsp>(() => new GetVideoVersionKeyScRsp());

		// Token: 0x04002534 RID: 9524
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002535 RID: 9525
		public const int ActivityVideoKeyInfoListFieldNumber = 11;

		// Token: 0x04002536 RID: 9526
		private static readonly FieldCodec<VideoKeyInfo> _repeated_activityVideoKeyInfoList_codec = FieldCodec.ForMessage<VideoKeyInfo>(90U, VideoKeyInfo.Parser);

		// Token: 0x04002537 RID: 9527
		private readonly RepeatedField<VideoKeyInfo> activityVideoKeyInfoList_ = new RepeatedField<VideoKeyInfo>();

		// Token: 0x04002538 RID: 9528
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04002539 RID: 9529
		private uint retcode_;

		// Token: 0x0400253A RID: 9530
		public const int VideoKeyInfoListFieldNumber = 12;

		// Token: 0x0400253B RID: 9531
		private static readonly FieldCodec<VideoKeyInfo> _repeated_videoKeyInfoList_codec = FieldCodec.ForMessage<VideoKeyInfo>(98U, VideoKeyInfo.Parser);

		// Token: 0x0400253C RID: 9532
		private readonly RepeatedField<VideoKeyInfo> videoKeyInfoList_ = new RepeatedField<VideoKeyInfo>();
	}
}
